{% include "header.html" %}
{{ user.username }}
      <h1>Piste {{run.name}}</h1>
      
      <b>Etat des t&eacute;l&eacute;si&egrave;ges : {{ open_lifts }} / {{ lifts.count }}</b>
      <br />
      <b>Note attribu&eacute; : {{ grade }} / 4</b>
      
      <ul>
    {% for lift in lifts %}
            <li>
            {{ lift.name }}
            {% if lift.state == 0 %}
                <b>T&eacute;l&eacute;si&egrave;ge ferm&eacute;</b>
                
            {% else %}
                <b>T&eacute;l&eacute;si&egrave;ge ouvert</b>
            {% endif %}                
            
            </li>
    {% endfor %}
    </ul>
    
    {% for feedback in feedbacks %}
            <li>
            Post&eacute; le : {{ feedback.date|date:"D d M Y H:i" }} <br />
            <b>{{ feedback.grade }} / 4 </b><br />
            {% if feedback.checks != None %}
                 Etat : 
                 <ul>
                  {% for check in feedback.checks %}
                    <li>{{ check }}</li>
                  {% endfor %}
                 </ul>
            {% endif %}
            {% if feedback.comment != None %}
                Commentaires : {{ feedback.comment }}   
            {% endif %}         
            
            </li>
            <br />
    {% endfor %}
    
    <form action="viewRun" method="post">
    
        {{ feedback_form.as_p }}

        <input type="submit" value="valider" name="submit">
     </form>
{% include "footer.html" %}